package com.jt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jt.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface FileMapper extends BaseMapper<User> {

    @Update("update user set images=#{realFileName} where id=#{id}")
    void setImages(@Param("id") Integer id,@Param("realFileName") String realFileName);

    @Select("select * from user where id=#{id}")
    User getUser(Integer id);
}
